package com.crm.business.crm.mapper;



import com.crm.common.crm.entity.BO.CrmLargeScreenSettingBO;
import com.crm.common.crm.entity.BO.CrmLargeScreenSettingSearchBO;
import com.crm.common.crm.entity.PO.CrmLargeScreenSetting;
import com.crm.business.servlet.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 线索表 Mapper 接口
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-21
 */
public interface CrmLargeScreenSettingMapper extends BaseMapper<CrmLargeScreenSetting> {
    /**
     * 查询列表数据
     * @param crmLargeScreenSetting
     * @return
     */
    List<CrmLargeScreenSettingBO> queryList(@Param("data") CrmLargeScreenSettingSearchBO crmLargeScreenSetting);

    /**
     * 分页查询 总数
     * @param search
     * @return
     */
    public Integer queryPageListCount(@Param("data") CrmLargeScreenSettingSearchBO search);

    /**
     * 根据配置value查询数据
     * @param batchId
     * @return
     */
    CrmLargeScreenSetting queryDataBySettingValue(@Param("batchId") String batchId);

    Integer updateIsEnabled(@Param("data") CrmLargeScreenSetting crmLargeScreenSetting);

    /**
     * 查询启用状态的数据信息
     * @return
     */
    CrmLargeScreenSetting queryEnableData();


    /**
     * 查询启用状态的数据信息
     * @return
     */
    void deleteMp4(@Param("fileId") List<Integer> fileId);

}
